package com.lebang.controller.sys;

import com.lebang.common.Login;
import com.lebang.service.buss.MemberRecordService;
import com.lebangweb.response.Callback;
import com.lebangweb.response.JsonData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: hwq
 * @Date: 2019/11/27 11:45
 * @Version 1.0
 */
@Controller
@RequestMapping("/sys/record")
public class MemberRecordController {
    @Autowired
    private MemberRecordService memberRecordService;

    @Login
    @PostMapping("/get")
    @ResponseBody
    public JsonData get(HttpServletRequest request, Integer id) {

        return Callback.success("success", "查询成功", memberRecordService.selectByid(id, null));
    }
}
